
var myTs = require("./myTs");
var fileSystem = require("fs");

fileSystem.readFile('file.ts', 'utf8', function (err, data) {
    if (err) {
        return console.log(err);
    }
    try {		
        myTs.QA.TsCodeAnalyzer.analyze(new myTs.TypeScript.StringSourceText(data), "file.ts");
    } catch (e) {
		
        console.log(e);
    }
    
});